<%@ page language="java" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	 <base href="<%=basePath%>" />
	<head>
	<title>粮油集团办公自动化协作平台</title>
	<link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" />
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/source/locale/ext-lang-zh_CN.js"></script>
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/global/pageControl.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/global/validator.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/system/selectusercheck.js"></script>
	<script type="text/javascript" src="<%=basePath%>FCKeditor/fckeditor.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript">
	
		// 判断不能为空
		function submitform1(){
	   // var oEditor = FCKeditorAPI.GetInstance('contest');
        //var content  = oEditor.GetXHTML(true);
        //contest = clearHtml(content);
       // contest = contest.replace(new RegExp('&nbsp;',"gm"),'');       
       var contest = $("#contest").val();
        var examineId=document.getElementById('examineId').value;
		if(isnull("input[name='subject']","请填入标题")
		   &&isnull("input[name='time']","请选择汇报时间")
		   &&isnull("input[name='examineId']","请选择审核人")
		   )
		{
				if(contest == ''){
					Ext.MessageBox.alert('提示信息', '请输入内容',function(){
				
					});
				}else{
					//msg();
					document.form1.submit();	
				}	
		}
	}
	function back()
	{
		history.back(-1);
	}
	</script>		
	</head>
	<body onload="initselectusercheck();">
	<div style="height:97%;">
		<form action="<%=basePath%>tjsinfo/tjsoa/worksummary/newWorksummary.do" method="post" name="form1">
			<div id="rightindex">
				<div id="tab" style="width:98%">
					<!--导航开始处-->
					<div id="indextit">
						<img src="images/gzzjtjicon.jpg" />
					</div>
					<div id="index_main">
					</div>
					<div class="draft_tab01" >	
					  
						<table width="100%" border="0" cellspacing="0">
							<tr>
								<td width="21%" align="right">
									工作总结汇报时间
								</td>
								<td width="76%">
									<input name="time" id="time" type="text" class="Wdate" onclick="WdatePicker()"/>
								</td>
							</tr>
							<tr>
								<td align="right">
									工作总结的标题
								</td>
								<td>
									<input name="subject" type="text" id="textfield2" size="100" maxlength="35"/>
								</td>
							</tr>
							<tr>
								<td align="right">
									审阅人
								</td>
								<td>
									<input readonly="readonly" name="examineUser" type="text" id="examineUser" size="100" />
								    <a href="javascript:selectusercheckwinshow('examineId','examineUser','nodeid')"  ><img  src="<%=basePath%>images/icon100.gif"/></a>
								    <input type="hidden" name="examineId" id="examineId"/>
								</td>
							</tr>
							<tr>
								<td align="right">
									工作总结的具体内容
								</td>
									<td>
									<table width="99%" border="0" cellspacing="0" cellpadding="0"
										class="texttab" >
										<tr>
											<td>
											<textarea name="contest" id="contest"
													style="width: 100%; height: 30px;"></textarea>
												<script type="text/javascript">
													var oFCKeditor = new FCKeditor( 'contest' ) ;
													oFCKeditor.BasePath = 'FCKeditor/' ;
													oFCKeditor.ToolbarSet = 'Default' ;
													oFCKeditor.Width = '100%' ;
													oFCKeditor.Height = '305' ;
													oFCKeditor.Value = '' ;
													oFCKeditor.ReplaceTextarea(); 
													//oFCKeditor.Create() ;
						                         </script>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td colspan="2">
									<div align="center">
										<a href="javascript:submitform1()" ><img src="images/baocun.gif" width="72"
												height="21" />
										</a>&nbsp;&nbsp;&nbsp;&nbsp;
										<a href="javascript:back()" ><img src="images/qx.gif" width="71"
												height="21" />
										</a>
									</div>
								</td>
							</tr>
						</table>
					</div>
				</div>
			 </div>
			 <input id="basePath" value="<%=basePath%>" type="hidden"/>
			 	<input type="hidden" name="nodeid" id="nodeid" value="" />
		</form>
	 </div>
	</body>
</html>
